<!DOCTYPE html>
<html lang="zh">
<head>
    <title>商户中心</title>
    <{include file="merchant/public/header"}>

</head>
<body class="hold-transition sidebar-mini layout-fixed">
<!-- Site wrapper -->
<div class="wrapper">
    <!-- Navbar -->
    <{include file="merchant/public/navbar"}>
    <!-- /.navbar -->

    <!-- Main Sidebar Container -->
    <!--左侧菜单-->
    <{include file="merchant/public/sidebar"}>

    <div class="content-wrapper">
        <!-- 面包屑轮播图 -->
        <section class="content-header">
            <div class="container-fluid">
                <div class="row mb-2">
                    <div class="col-sm-6">
                        <h1></h1>
                    </div>
                    <div class="col-sm-6">
                        <ol class="breadcrumb float-sm-right">
                            <li class="breadcrumb-item"><a href="<{:url('index')}>">首页</a></li>
                            <li class="breadcrumb-item active">提现申请</li>
                        </ol>
                    </div>
                </div>
            </div>
        </section>

        <!-- 内容区-->
        <section class="content">
            <div class="container-fluid">
                <div class="row">

                    <div class="col-md-12">
                        <div class="card card-success">
                            <div class="card-header">
                                <h3 class="card-title  ">申请货款提现</h3>
                            </div>

                            <form method="post" action="<{:url('withdraw_apply')}>" id="check-form">
                                <{:token()}>
                                <div class="card-body">
                                   <div class="alert alert-warning">
                                       <p>提现说明：①满10元可提现，有审核中的申请时请等待审核过后再发起申请；审核时间1~7个工作日，审核不通过货款会返还到余额；②请确认填写信息无误。单次提现不能超过5000元，当日提现不能超过10000元；③其他说明另行通知。</p>
                                   </div>
                                    <div class="form-group">
                                        <label for="num">提现金额</label>
                                        <input name="num" min="0" step="1" value="0.00" type="number" class="form-control" id="num" placeholder="提现金额">
                                        <span class="bs-red">不能超过当前可提余额：<{:isset($data.credit)?$data.credit:'0.00'}>，手续费：<{:isset($data.fee)?$data.fee:'0.00'}></span>
                                    </div>
                                    <div class="form-group">
                                        <label for="username">姓名</label>
                                        <input name="username" value="<{:isset($data.username)?$data.username:''}>" type="text" class="form-control" id="username" placeholder="请填写真实姓名">

                                    </div>
                                    <div class="form-group">
                                        <label for="to_type">到账方式</label>
                                        <select name="to_type" id="to_type" class="form-control">
                                            <option <{:isset($data.to_type)&&$data.to_type==1?'selected':''}> value="1">支付宝</option>
                                            <option <{:isset($data.to_type)&&$data.to_type==2?'selected':''}>  value="2">微信</option>
                                            <option <{:isset($data.to_type)&&$data.to_type==3?'selected':''}>  value="3">银行卡</option>
                                        </select>

                                    </div>
                                    <div class="form-group">
                                        <label for="to_account">提现账户</label>
                                        <input name="to_account" value="<{:isset($data.to_account)?$data.to_account:''}>" type="text" class="form-control" id="to_account" placeholder="提现账户">
                                        <span class="bs-red">和到账方式对应，如支付宝账号、微信账号、银行卡号等</span>

                                    </div>



                                    <div class="card-footer">

                                        <a href="<{:url('withdraw')}>" class=" btn btn-default">返回</a>

                                        <button type="button" onclick="layer.confirm('确定提交吗？',{title:0},function() {
                                          form_submit(['username','to_account'],'<{:url()}>')
                                        })" class="btn btn-success bs-left-30">提交申请</button>

                                    </div>
                                </div>
                            </form>
                        </div>

                    </div>

                </div>

            </div>
        </section>
    </div>


</div>
<!-- ./wrapper -->

<{include file="merchant/public/footer"}>

</body>
</html>
